package cn.gjxblog.ioc.bean;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * TODO...
 *
 * @Author guojiaxun
 * @Date 2019/12/4 10:22
 */
@Component
public class BeanA  {

	public BeanA() {
		System.out.println("invoke constructor A ");
	}

	private String name = "i am beanA";

	@Autowired
	BeanB beanB;

	public String getName() {
		return name;
	}

}
